package com.lt.lumentracks.service;

import com.lt.lumentracks.entity.po.UserBlacklist;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lt.lumentracks.entity.vo.common.Result;
import com.lt.lumentracks.entity.vo.user.UserVO_conversationList;

import java.util.List;

/**
 * <p>
 * 黑名单表，记录用户之间的拉黑情况 服务类
 * </p>
 *
 * @author swl
 * @since 2025-10-24
 */
public interface IUserBlacklistService extends IService<UserBlacklist> {

    Result<String> block(Integer userId, Integer targetId);

    Result<String> unblock(Integer userId, Integer targetId);

    List<UserVO_conversationList> getBlockedList(Integer userId);

    Boolean isBlocked(Integer userId, Integer targetId);

    Boolean isExistBlocked(Integer userId, Integer targetId);
}
